package org.ecbox.sdk.internal.stream;

/**
 * 长连接工厂
 * 
 * File: EopCometStreamFactory.java<br/>
 * Description: <br/>
 *
 * Copyright: Copyright (c) 2012 ecbox.com<br/>
 * Company: ECBOX,Inc.<br/>
 *
 * @author chenxiaochun
 * @date Dec 30, 2012
 * @version 1.0
 */
public class EopCometStreamFactory {

	private Configuration configruation;

	public EopCometStreamFactory(Configuration configuration) {
		if (configuration == null) {
			throw new RuntimeException("configuration is must not null!");
		}
		this.configruation = configuration;
	}

	/**
	 * 获取一个长连接实例
	 * 
	 * @return
	 */
	public EopCometStream getInstance() {
		return new EopCometStreamImpl(configruation);
	}
}
